package com.itheima.tanhua.api;

import com.itheima.tanhua.api.db.UserInfoApi;
import com.itheima.tanhua.mapper.UserInfoMapper;
import com.itheima.tanhua.pojo.db.UserInfo;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * @author 芝士雪豹
 * @create 2022/9/28/18:04
 */
public class UserInfoApiImpl implements UserInfoApi {
    @Autowired
    private UserInfoMapper userInfoMapper;

    @Override
    public UserInfo findById(Long userId) {
        //根据id查询用户信息
        return userInfoMapper.selectById(userId);
    }
}
